package com.videoanswer.van.web.client.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class TeacherCenterController {
	@RequestMapping(value = { "/teacherCenter" }, method = { RequestMethod.POST })
	public ModelAndView postLogin(MultipartHttpServletRequest fileRequest, HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception{
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("hasMainNav", false);
		
		return new ModelAndView("/teacherCenter", map);
		
	}
	
	@RequestMapping(value = { "/teacherCenter" }, method = { RequestMethod.GET })
	public ModelAndView getLogin(HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception{
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("hasMainNav", false);
		
		return new ModelAndView("/teacherCenter", map);
	}
}